package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.SalaryLevel;
import com.hrma.entity.SalaryLevelVO;
import com.hrma.entity.SelectResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SalaryLevelMapper {
    void add(SalaryLevel data);

    void delete(int id);

    /**
     * 修改工资划分表
     */
    void update(SalaryLevel data);

    List<SelectResult> selectSalary();

    Page<SalaryLevel> getList(SalaryLevel data);

    boolean exist(@Param("id") Integer id);

    /**
     * 得到工资等级二维表
     */
    List<SalaryLevelVO> getSalaryLevel();
}
